package com.hjy.demo.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hjy.demo.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleService {

    List<Role> findAll();

    IPage<Role> RolePage(Page<Role> page, @Param("ew") Wrapper<Role> queryWrapper);

    int addRole(Role role);
    int deleteRole(Long roleId);
    int updateRole(Role role);
    Role getRole(Long roleId);
}
